package com.zhangxin.aiInterview.service;

import com.zhangxin.aiInterview.model.dto.community.SubmitInterviewExperienceCommentRequest;
import com.zhangxin.aiInterview.model.dto.community.SubmitInterviewExperienceRequest;
import com.zhangxin.aiInterview.model.vo.response.GetCommonInterviewExperienceListResponse;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CommunityService {
    /**
     * 提交面经
     * @param submitInterviewExperienceRequest
     * @param request
     * @return
     */
    boolean submitInterviewExperience(SubmitInterviewExperienceRequest submitInterviewExperienceRequest, HttpServletRequest request);

    /**
     * 提交面经评论
     * @param submitInterviewExperienceCommentRequest
     * @param request
     * @return
     */
    boolean submitInterviewExperienceComment(SubmitInterviewExperienceCommentRequest submitInterviewExperienceCommentRequest, HttpServletRequest request);

    /**
     * 获取所有面经
     * @return
     */
    List<GetCommonInterviewExperienceListResponse> getCommonInterviewExperienceList();
}
